package com.qf.base.service.impl;

import com.qf.base.domain.BaseAddress;
import com.qf.base.mapper.BaseAddressMapper;
import com.qf.base.service.IBaseAddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * --- ONE PIECE ---
 *
 * @author yangjiangcheng
 * @date 2025/9/4
 * @desc
 */
@Service
public class BaseAddressServiceImpl implements IBaseAddressService {
    @Autowired
    private BaseAddressMapper baseAddressMapper;
    @Override
    public List<BaseAddress> selectAddressList(BaseAddress address) {
        return baseAddressMapper.selectAddressList(address);
    }

    @Override
    public int insertAddress(BaseAddress address) {
        return baseAddressMapper.insertAddress(address);
    }

    @Override
    public int updateAddress(BaseAddress address) {
        return baseAddressMapper.updateAddress(address);
    }

    @Override
    public BaseAddress selectAddressById(Long addressId) {
        return baseAddressMapper.selectAddressById(addressId);
    }

    @Override
    public int deleteAddressByIds(Long[] ids) {
        return baseAddressMapper.deleteAddressByIds(ids);
    }
}
